<#assign base=request.contextPath />
<#assign oneLabel="系统管理">

<#assign twoLabel="角色管理">
<#assign twoUrl=base+"/role/list">

<#assign leafLabel="角色授权">
<!DOCTYPE html>
<html lang="en">
<head>
	<link href="${base}/static/tree/jslib/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" role="form" name="formName" method="post">
<#include "/commons/hiddenField.ftl">
<input type="hidden" name="roleId" value="${roleDO.id}"/>
<div class="row">
	<div class="col-xs-12">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="form-field-1">角色 </label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">${roleDO.name!'--'}</div>
			</div>
		</div>
		<div class="space-4"></div>
			
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="form-field-1">备注</label>
			<div class="col-sm-4">
				<textarea class="col-xs-12" readonly='true'>${roleDO.remark!''}</textarea>
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="form-field-2">资源</label>
			<div class="col-sm-6">
			 <div class="checkbox">
				<ul id="tree" class="ztree" style="width:260px; overflow:auto;"></ul>
				<input type="hidden" id="checked_value_id" name="checked"/>
			  </div>
			</div>
		</div>
	</div><!-- /.col -->
</div><!-- /.row -->
</form>

<div class="hr hr32 hr-dotted"></div>
<div class="clearfix">
	<div class="col-md-offset-2 col-md-9">
		<button class="btn btn-xs btn-info" type="button" id="bind_id" url="${base}/role/bind">
			<i class="icon-save bigger-110"></i>保存
		</button>
		<button class="btn btn-xs return_class" type="button" url="${base}/role/list">
			<i class="icon-reply bigger-110"></i>返回
		</button>
	</div>
</div>

<input type="hidden" value='${json}' id="_json_id">

<#include "/commons/footer.ftl">
<script type="text/javascript" src="${base}/static/tree/jslib/zTreeStyle/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="${base}/static/js/admin/rolebind.js"></script>
</body>
</html>
